# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.ContactCenterAIPlatform.V1alpha1.Model.SAMLParams do
  @moduledoc """
  Message storing SAML params to enable Google as IDP.

  ## Attributes

  *   `authenticationContexts` (*type:* `list(String.t)`, *default:* `nil`) - Additional contexts used for authentication.
  *   `certificate` (*type:* `String.t`, *default:* `nil`) - SAML certificate
  *   `emailMapping` (*type:* `String.t`, *default:* `nil`) - IdP field that maps to the user’s email address
  *   `entityId` (*type:* `String.t`, *default:* `nil`) - Entity id URL
  *   `ssoUri` (*type:* `String.t`, *default:* `nil`) - Single sign-on URL
  *   `userEmail` (*type:* `String.t`, *default:* `nil`) - Email address of the first admin users.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :authenticationContexts => list(String.t()) | nil,
          :certificate => String.t() | nil,
          :emailMapping => String.t() | nil,
          :entityId => String.t() | nil,
          :ssoUri => String.t() | nil,
          :userEmail => String.t() | nil
        }

  field(:authenticationContexts, type: :list)
  field(:certificate)
  field(:emailMapping)
  field(:entityId)
  field(:ssoUri)
  field(:userEmail)
end

defimpl Poison.Decoder, for: GoogleApi.ContactCenterAIPlatform.V1alpha1.Model.SAMLParams do
  def decode(value, options) do
    GoogleApi.ContactCenterAIPlatform.V1alpha1.Model.SAMLParams.decode(value, options)
  end
end

defimpl Poison.Encoder, for: GoogleApi.ContactCenterAIPlatform.V1alpha1.Model.SAMLParams do
  def encode(value, options) do
    GoogleApi.Gax.ModelBase.encode(value, options)
  end
end
